package fr.matspider.vampireinvader;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;

import fr.matspider.vampireinvader.entities.Player;

public class VampireInvader extends BasicGame{
	
	private static String title = "VampireInvader";
	private static AppGameContainer game;
	private Player player;
	
	public VampireInvader() {
		super(title);
	}
	
	public static void main(String args[]) throws SlickException{
		game = new AppGameContainer(new VampireInvader());
		game.setDisplayMode(800, 600, false);
		game.start();
	}

	@Override
	public void render(GameContainer gc, Graphics g) throws SlickException {
		player.render(gc, g);
	}

	@Override
	public void init(GameContainer gc) throws SlickException {
		player = new Player(10, 10);
	}

	@Override
	public void update(GameContainer gc, int delta) throws SlickException {
		player.update(gc, delta);
	}
}
